import { findById } from '@/services/student';
import { defineStore } from 'pinia'

export default defineStore('student',{
    state:() => {
        return {
            updateVisible:false,
            student:{}
        }
    },
    actions:{
        async fetchStudent(id){
            this.student = await findById(id);
        }
    }
});